#ifndef AMANOFMAPSSTATE_H_INCLUDED
#define AMANOFMAPSSTATE_H_INCLUDED

#include "GameState.h"
#include <TGUI/TGUI.hpp>
#include "GameEngine.h"
#include <iostream>
#include <sstream>
#include "Tilemap.h"
#include "TextEntity.h"
#include "IntroState.h"
#include "tile.h"
#include <vector>

class AManOfMapsState : public GameState
{
public:

	void Init(sf::RenderWindow& window);
	void Cleanup();

	void Pause();
	void Resume();

	void Events(GameEngine* game, sf::RenderWindow& window);
	void Update(GameEngine* game, sf::RenderWindow& window);
	void Render(GameEngine* game, sf::RenderWindow& window);

	static AManOfMapsState* Instance() {
		return &m_AManOfMapsState;
	}

protected:
	AManOfMapsState() { }

private:

	static AManOfMapsState m_AManOfMapsState;

    sf::View view;
    sf::View view2;

    sf::Event event;

    tgui::Gui gui;

    std::vector<tile*> tiles;

    TileMap map;

    sf::Sprite mapBorder;
    sf::Texture mapBorderTexture;
    sf::Sprite player;
    sf::Texture pTexture;
    int playerTile;

    sf::Vector2f playerPosition;

};



#endif // AMANOFMAPSSTATE_H_INCLUDED
